﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NHibernate.Mapping.Attributes;
namespace TinyERP.ERP.Entity
{
    [NHibernate.Mapping.Attributes.Subclass(NameType = typeof(Customer), 
        DiscriminatorValue="Customer", ExtendsType=typeof(Contact))]
    public class Customer: Contact
    {
        [NHibernate.Mapping.Attributes.Property(Column = "CustomerType",TypeType=typeof(CustomerType))]
        public virtual CustomerType CustomerType { get; set; }
    }
    public enum CustomerType
    {
        PERSON,
        COMPANY
    }
}
